<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::group("", function () {

    Route::post('login', 'login/account');

    ## 首页数据统计
    Route::get('get_index', 'Index.index/index');

    Route::get('get_mall_info', 'Mall.mall/getMallInfo'); //商户信息



    ## 学校管理
    Route::get('get_school_list', 'School.school/getSchoolList');
    Route::get('get_school_more', 'School.school/getSchoolMore');
    Route::post('add_school', 'School.school/addSchool');
    Route::post('edit_school', 'School.school/editSchool');

    # 商品
    ## 分类
    Route::get('get_goods_cate_list', 'Goods.goods_cate/getGoodsCateList');
    Route::post('del_goods_cate', 'Goods.goods_cate/delGoodsCate');
    Route::post('add_goods_cate', 'Goods.goods_cate/addGoodsCate');
    Route::post('edit_goods_cate', 'Goods.goods_cate/editGoodsCate');
    Route::post('get_goods_node_cate', 'Goods.goods_cate/getNodeCate');
    Route::get('get_goods_cate_all', 'Goods.goods_cate/getCateAll');
    Route::get('get_goods_type_all', 'Goods.goods_cate/getGoodsTypeAll');

    ## 商品信息
    Route::get('get_goods_list', 'Goods.goods/getGoodsList');
    Route::post('del_goods', 'Goods.goods/delGoods');
    Route::post('add_goods', 'Goods.goods/addGoods');
    Route::post('edit_goods', 'Goods.goods/editGoods');
    Route::post('edit_goods_type', 'Goods.goods/editGoodsType');

    # 课程管理
    ## 课程分类
    Route::get('get_course_cate_list', 'Course.course_cate/getCourseCateList');
    Route::post('del_course_cate', 'Course.course_cate/delCourseCate');
    Route::post('add_course_cate', 'Course.course_cate/addCourseCate');
    Route::post('edit_course_cate', 'Course.course_cate/editCourseCate');
    Route::get('get_course_cate_all', 'Course.course_cate/getCourseCateAll');
    ## 课程信息
    Route::get('get_course_list', 'Course.course/getCourseList');
    Route::post('del_course', 'Course.course/delCourse');
    Route::post('add_course', 'Course.course/addCourse');
    Route::post('edit_course', 'Course.course/editCourse');
    Route::post('edit_course_type', 'Course.course/editCourseType');


    # 订单管理
    ## 商品订单
    Route::get('get_order_goods_list', 'Order.Goods.goods_order/getOrderGoodsList');
    ## 拼团
    Route::get('get_collage_goods_order_list', 'Order.Collage.collage/getCollageGoodsOrderList');
    ## 拼团订单列表
    Route::get('get_order_group_goods_list', 'Order.Collage.collage/getOrderGroupGoodsList');

    ## 会员订单
    ## 免费领取订单
    Route::get('get_free_order_list', 'Free.free_order/getFreeOrderList');
    ## 发货
    Route::post('deliver_order', 'Order.Goods.goods_order/deliverOrder');
    Route::post('deliver_free_order', 'Free.free_order/deliverFreeOrder');

    # 提现管理
    Route::get('get_user_withdraw_list', 'User.user_withdraw/getUserWithdrawList');
    Route::get('get_user_withdraw_wxpay', 'User.user_withdraw/getUserWithdrawWxPay');
});